module decode4_7(c0,c1,c2,HEX0);
	input c2,c1,c0;
	output reg[0:6] HEX0;
	always @(*)
		begin
			case({c2,c1,c0})
				3'b000: 
					HEX0=~7'b0110111;
				3'b001: 
					HEX0=~7'b1001111;
				3'b010: 
					HEX0=~7'b0001110;
				3'b011: 
					HEX0=~7'b1111110;
				default: 
					HEX0=~7'b0000000;
			endcase
		end
endmodule